package main

import (
	"fmt"
	"math/rand"
	"time"
)

const Count = 50

func main() {
	var uplimit int32 = 30
	var a, b, i int32
	var seed int64 = time.Now().Unix()
	rand.Seed(seed)

	for i = 0; i < Count; i++ {
		a = rand.Int31n(uplimit/2) + 3
		b = rand.Int31n(uplimit/2) + uplimit/2
		fmt.Printf("\n%d  +  %d  = ", a, b)

		b = rand.Int31n(uplimit/2) + 2
		a = b + 2 + rand.Int31n(uplimit-b)
		fmt.Printf("\t\t%d  -  %d  =    \n", a, b)
	}

	return
}
